home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-02-23 | 1.9 KB | 47 lines | [TEXT/GEOL] |
- Item forwarded by D4682 to CPLUS.DEV$
-
- Item 9434362 22-Feb-90 12:32PST
-
- From: D4682 Marx, Peter,PRT
-
- To: MACDTS Macintosh Developer Tech. Supt.
- MACAPP.TECH$ MacApp Technical
- GRETSCH Gretsch, Greg
-
- Sub: Dragging TVIEWs Around
-
- Dear Colleagues and Scholars:
-
- How do you drag (yes, drag) a TView around using the mouse. I want to drag a
- TPicture around - like a slider - and am having some difficulties. I am using
- MacApp 2.0ß9, MPW C++ 3.1, MPW 3.1, and system 6.0.4. The hardware is quick,
- but standard.
-
- The problem I am having is this:
-
- I can drag the TPicture around by implementing a DoMouseDown(), TrackFeedback()
- - which does the actual dragging, and TrackConstrain() in the superview to the
- TPicture. The superview is a TDialogView within a TWindow. There is a subview
- to the TPicture which is a TNumberText.
-
- All of this partially works - the TPicture moves (as does its subview) - but
- ONLY SO FAR. It will go no further than its ORIGINAL extent. For example, you
- can click and drag the TPicture only about 25 pixels; as soon as the mouse
- leaves the original VRect extent, it stops dragging. My ::TrackConstrain()
- method gets called with a point corresponding to the outer boundary of the
- TPicture. This is REGARDLESS of the FACT that the mouse click is being HANDLED
- by the SUPERVIEW (and the TPicture is even disabled!)
-
- Is this a bug? Is this designed? (Now that it is documented, could it be
- considered a feature?) In any case, how in the hell do I get around it? I'd
- really like to be able to drag my TView around!
-
- Thanks for any help you all can provide. Being a avid reader of the guerilla
- wars, I thought I'd turn to MacApp.Tech$ for advice and consolation.
-
- Peter Marx
- UCLA Dept. of Medicine
-
- 213/471-2754
-
-